const mysql = require('mysql');

let db = mysql.createConnection({
  host: '127.0.0.1',
  user: 'root',
  password: 'root',
  database: 'test',
  port: 3306
});

db.connect(err => {
  if (err) throw err;
});

module.exports = db;